<%@include file="header.jsp" %>
<h1>My Profile</h1>
<div>
	<h2>Change My Information</h2>
	<h3><%= session.getAttribute("username") %></h3>
	<form name="edit_profile" method="post" action="ProcessUpdatePassword">
		
		<fieldset>
		<legend>Change My Password</legend>
		${messages.message}
				
		<label for="password" >New Password:</label>
		<input name="password" type="password" value="${user.password}"> 

		<label for="password2" >Confirm Password:</label>
		<input name="password2" type="password" value="${user.password}"> 

		<input name="username" type="hidden" value="${user.username}">

		<input type="submit" value="submit">
		</fieldset>
	</form>
	
	<fieldset>
		<legend>Update Personal Info</legend>
		<form class="user_info" id="edit_user_form" name="edit_user" method="post" action="ProcessUpdateProfile">
			${messages.update_msg}
			
			<label for="first_name">First Name:</label>
			<input name="first_name" type="text" value="${user.firstname}"> 
	
			<label for="last_name">Last Name:</label>
			<input name="last_name" type="text" value="${user.lastname}"> 		
			
			<label for="address">Address:</label>
			<input name="address" type="text" value="${user.address}"> 		
	
			<label for="email">Email:</label>
			<input class="required email" name="email" type="text" value="${user.email}"> 		
	
			<label for="phone">Phone:</label>
			<input name="phone" type="text" value="${user.phone}"> 				
	
			<input name="username" type="hidden" value="${user.username}">
			<input type="submit" value="submit">
		</form>	
	</fieldset>	
	
</div>
<%@include file="footer.jsp" %>